package com.jrx.anytxn.param.job.paph.step;

import com.jrx.anytxn.param.entity.TlFilePaymentLog;
import com.jrx.anytxn.param.mapper.base.TlFilePaymentLogMapper;
import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author LY
 * @Description 保存tl_file_payment_log
 */
@Service
public class ReadPrepayFileWriter implements ItemWriter<TlFilePaymentLog> {

	@Resource
	private TlFilePaymentLogMapper tlFilePaymentLogMapper;

	@Override
	public void write(List<? extends TlFilePaymentLog> items) throws Exception {
		for (TlFilePaymentLog item : items) {
			tlFilePaymentLogMapper.insertSelective(item);
		}
	}
}
